package application;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.image.ImageView;
import javafx.stage.Stage;

public class TextAreaDemo extends Application{
	@Override
	public void start(Stage primaryStage) {
		DescriptionPane descriptionPane = new DescriptionPane();
		
		descriptionPane.setTitle("China");
		String description = "The Chinese Falg ...";
		ImageView flag = new ImageView("Flag.png");
		flag.setFitHeight(27.30 * 5);
		flag.setFitWidth(40.96 * 5);
		descriptionPane.setImage(flag);
		descriptionPane.setDescription(description);
		
		Scene scene = new Scene(descriptionPane, 450, 200);
		primaryStage.setTitle("TextAreaDemo");
		primaryStage.setScene(scene);
		primaryStage.show();
		
	}

	
	public static void main(String[] args) {
		Application.launch(args);
	}
}
